package cc.yaomm.common.basic.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * Created by XQL on 2021/6/9.
 */
@Getter
public enum PermissionTypeEnum implements SuperEnum<PermissionTypeEnum, Integer> {

    /**
     * 目录
     */
    CATALOG(1, "目录"),
    /**
     * 菜单
     */
    MENU(2, "菜单"),
    /**
     * 按钮
     */
    BUTTON(3, "按钮");

    @EnumValue
    private Integer value;

    private String name;

    PermissionTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public PermissionTypeEnum[] enums() {
        return values();
    }
}
